package com.arcbbs.mapper;

import com.arcbbs.entity.ForumArticle;
import com.arcbbs.entity.UserIntegralRecord;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserIntegralRecordMapper {
    /**
     * 根据RecordId更新
     */
    Integer updateByRecordId(@Param("recordId") Integer recordId);


    /**
     * 根据RecordId删除
     */
    Integer deleteByRecordId(@Param("recordId") Integer recordId);


    /**
     * 根据RecordId获取对象
     */
    void selectByRecordId(@Param("recordId") Integer recordId);

    void insert(UserIntegralRecord userIntegralRecord);

    Page<UserIntegralRecord> page(String userId);
}
